timestamp=$(date +"%Y%m%d-%H%M")
source ~/py3env/bin/activate
kill -9 $(ps -ef | grep py3vassals | grep -v grep | awk '{ print $2 }')
nohup uwsgi --emperor /etc/uwsgi/py3vassals/ --daemonize /home/jezhang/www/disn/uwsgi.log  > /dev/null 2>&1 &
#/nohup uwsgi --emperor /etc/uwsgi/py3vassals/ --daemonize /home/jezhang/var/disn/logs/uwsgi-$timestamp.log  > /dev/null 2>&1 &
#echo "tail -f /home/jezhang/var/disn/logs/uwsgi-$timestamp.log"
